<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
	  <title>Pragprog Books OnLine Store</title>
	  <%= stylesheet_link_tag "depot", :media =>"all" %>
	  <%= javascript_include_tag :defaults %>
	</head>
	<body id="store">
		<div id="banner">
			<%= image_tag("logo.png") %>
			<%= @page_title || "Pragmatic Bookshelf" %>
		</div>
		<div id= "columns">
			<div id="side">
				<a href="/Admin">Admin</a><br />
				<% hidden_div_if(@cart.items.empty?, :id => "cart") do %>
					<%= render(:partial =>"cart", :object => @cart)%>
				<% end %>

			</div>
			<div id="main">
				<% if flash[:notice] -%>
					<div id="notice"><%= flash[:notice] %></div>
				<% end -%>
				<%= yield :layout %>
			</div>
		</div>
	</body>
</html>